class Power:

    def __init__(self, framework):
        self.framework = framework
        self.command = {}

    def status(self, v, channel, status):
        if v == 5:
            self.command = {"type": "power-5-status", "channel": channel, "status": status}
            if self.framework.status:
                self.framework.write(self.command)
        if v == 24:
            self.command = {"type": "power-24-status", "channel": channel, "status": status}
            if self.framework.status:
                self.framework.write(self.command)
